<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/3/20 0020
 * Time: 下午 8:29
 */

namespace app\admin\controller;


use think\Controller;
use think\facade\Cookie;

class Base extends Controller
{
    /**
     * 继承 页面 用户登入验证  未写
     */

    protected $imageUrl = "http://api.yd2021.com/";

    protected function initialize()
    {
        $userId = Cookie::get("userId");
        if (empty($userId)) {
            $this->success("您还未登入，请您先登入",url('/admin/login/login'),"",1);
        }
    }
}